# A recursive makefile? Blasphemy!
# Copyright 2007 Matthw Iselin

# folders in which to look for makefiles
FOLDERS:=testprog tty mattisevfs devfs
# tty testprog mattisevfs devfs ata fat mattiseshell

# setup all the variables
include ../mkinc/userland.include

# builds all of them
all:
	for i in $(FOLDERS); do \
	echo "--------------------------- Compiling in $$i ---------------------------"; \
	(cd $$i; $(MAKE) all); \
	done

# cleans out each one
clean:
	for i in $(FOLDERS); do \
	echo "--------------------------- Cleaning in $$i ---------------------------"; \
	(cd $$i; $(MAKE) clean); \
	done
	
# installs each one
install:
	for i in $(FOLDERS); do \
	echo "--------------------------- Installing in $$i ---------------------------"; \
	(cd $$i; $(MAKE) install); \
	done
